import Vue from 'vue'
import Router from 'vue-router'
import Dataview from '../components/Dataview'
import chinaym from '../components/ChinaYM.vue'
import worldym from '../components/WorldYM.vue'
import axios from 'axios'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.prototype.$axios = axios
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',redirect:'/chinaym'
    },
    // {
    //   path: '/',
    //   name: 'Dataview',
    //   component: Dataview
    // },
    {
      path: '/chinaym',
      name: 'chinaym',
      component: chinaym
    },
    {
      path:'/worldym',
      name:'worldym',
      component:worldym
    }
  ]
})
